package com.shuoyue.ycgk.ui.recruitment;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.RecruitmentCommentCourse;
import com.zzhoujay.richtext.RichText;

import java.util.List;

public class RecommentCourseAdapter extends AppBaseQuickAdapter<RecruitmentCommentCourse> {
    public RecommentCourseAdapter(@Nullable List<RecruitmentCommentCourse> data) {
        super(R.layout.item_recruiment_recomend_course, data);
    }

    /**
     * Implement this method and use the helper to adapt the view to the given item.
     *
     * @param helper A fully initialized helper.
     * @param item   The item that needs to be displayed.
     */
    @Override
    protected void convert(BaseViewHolder helper, RecruitmentCommentCourse item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.courseName,item.getTitle());
        helper.setText(R.id.courseSubTitle,item.getIntro());

    }
}
